home *** CD-ROM | disk | FTP | other *** search
/ Ultimate Add-On's (Tournament Edition) / Cybercore Publishing - Ultimate Add-on's Tournament Edition.iso / pakdfile.exe / IFACE.BAT < prev    next >
DOS Batch File  |  1995-08-28  |  3KB  |  165 lines

  1. @echo off
  2. %2
  3. cd %3
  4. if not exist %1\pakdfile.exe goto noCDROM
  5. m12
  6. goto skipNoBanner
  7.  
  8. :top
  9. %2
  10. cd %3
  11. if not exist %1\pakdfile.exe goto noCDROM
  12. m12 /n
  13. goto skipNoBanner
  14.  
  15. :page2
  16. %2
  17. cd %3
  18. if not exist %1\pakdfile.exe goto noCDROM
  19. m12 /n /2
  20.  
  21. :skipNoBanner
  22. if errorlevel 128  goto hints
  23. if errorlevel 16  goto l16
  24. if errorlevel 15  goto l15
  25. if errorlevel 14  goto l14
  26. if errorlevel 13  goto l13
  27. if errorlevel 12  goto l12
  28. if errorlevel 11  goto l11
  29. if errorlevel 6  goto l6
  30. if errorlevel 5  goto l5
  31. if errorlevel 4  goto l4
  32. if errorlevel 3  goto l3
  33. if errorlevel 2  goto l2
  34. if errorlevel 1  goto l1
  35. if errorlevel 0  goto l0
  36. goto done
  37.  
  38. REM * M12 exits with a code determined by the button pressed. Please change the
  39. REM * sections below to your needs (your favorite launcher, game modifier, ...)
  40. REM * Note: %1 is the CD ROM drive, %2 is the UAO drive, and %3 is the UAO dir.
  41.  
  42. :noCDROM
  43. echo.
  44. echo         Please insert Ultimate Add-Ons CD-ROM into drive.
  45. echo           Press a key to continue ('X' or 'ESC' to Exit)
  46. echo.
  47. exitkey
  48. if errorlevel 1 goto l0
  49. goto top
  50.  
  51. :hints
  52. see\see %1\cheats\
  53. goto page2
  54.  
  55. :l1
  56. call ul /1
  57. pause
  58. goto top
  59.  
  60. :l2
  61. cls
  62. call dfgo.bat %1 %2 %3
  63. goto top
  64.  
  65. :l3
  66. call ul /3
  67. pause
  68. goto top
  69.  
  70.  
  71. :l4
  72. cls
  73. call dsntgo.bat %1 %2 %3
  74. goto top
  75.  
  76.  
  77. :l5
  78. call ul /2
  79. pause
  80. goto top
  81.  
  82.  
  83. :l6
  84. cls
  85. call rottgo.bat %1 %2 %3
  86. goto top
  87.  
  88.  
  89. :l11
  90. cls
  91. %1
  92. cd \games\doom
  93. doom.exe
  94. pause
  95. goto page2
  96.  
  97. :l12
  98. cls
  99. %1
  100. cd \games\tv
  101. tv.exe
  102. pause
  103. goto page2
  104.  
  105. :l13
  106. cls
  107. %1
  108. cd \games\heretic
  109. heretic.exe
  110. pause
  111. goto page2
  112.  
  113. :l14
  114. cls
  115. if exist shardsnt\descent.bat goto l14Run
  116. chkspace %2 7000
  117. if errorlevel 1 goto spaceNotOK
  118. :spaceOK
  119. echo The shareware version of Descent needs to be installed on your
  120. echo hard drive to run properly.  This will require about 7 Meg of free
  121. echo diskspace.  In order for it to run with this interface, it will be
  122. echo copied to the "%3\shardsnt" directory. 
  123. echo Press 'C' to continue and copy (copy %1\games\dcent\*.* shardsnt)  
  124. echo                 Any other key will abort.
  125. contkey
  126. if errorlevel 1 goto doCopy
  127. goto enddsnt
  128. :doCopy
  129. md shardsnt
  130. copy %1\games\dcent\*.* shardsnt
  131. :l14Run
  132. cd shardsnt
  133. call descent.bat
  134. pause
  135. goto enddsnt
  136. :spaceNotOK
  137. echo You may have enough hard diskspace to copy the shareware version of
  138. echo Descent to your hard drive.  Please free up about 7 Meg and try again.
  139. pause
  140. :enddsnt
  141. goto page2
  142.  
  143. :l15
  144. cls
  145. %1
  146. cd \games\dforces
  147. df.exe
  148. pause
  149. goto page2
  150.  
  151. :l16
  152. cls
  153. %1
  154. cd \games\rott
  155. rott.exe
  156. pause
  157. goto page2
  158.  
  159. :l0
  160. echo Thanks for using ... Ultimate Add-Ons Volume I
  161. goto done
  162.  
  163. :done
  164.  
  165.